package com.classic.common.simple;


import com.classic.common.MultipleStatusView;
import ohos.agp.components.DirectionalLayout;

public class SimpleAbility extends AbsAbility {
    @Override
    void initView() {
        setUIContent(ResourceTable.Layout_ability_simple);
        mMultipleStatusView = (MultipleStatusView) findComponentById(ResourceTable.Id_simple_multiple_status_view);
        mMultipleStatusView.setOnRetryClickListener(mRetryClickListener);
        initAppBar();
        loading();
    }
    private void initAppBar() {
        DirectionalLayout backButton = (DirectionalLayout)
                findComponentById(ResourceTable.Id_appBar_backButton_touchTarget);
        backButton.setClickedListener(component -> onBackPressed());
    }
}
